package com.service;

import com.bean.User;
import com.dao.UserDao;
import com.dao.UserDaoImp;

public class UserServiceImp implements UserService {
    UserDao ud;

    public UserServiceImp(){
        ud=new UserDaoImp();
    }

    /**
     * 判断用户是否存在
     * @param user 用户信息
     */
    @Override
    public boolean isUser(User user) {
        return ud.isUser(user);
    }

    public boolean isExist(String username){
        return ud.checkUsernameExist(username);
    }
}
